package org.zju.demo.service.intf;

import org.zju.demo.model.User;

import java.util.List;

/**
 * Created by admin on 2015/8/26.
 */
public interface UserIntf {
    public User findByUsername(String name);
    public int register(String username, String nickname, String password);
    public int login(String username, String password);
    public boolean update(User user);
    public boolean saveOrUpdate(User user);
    public List<User> getAllUser();
    public User findByUserId(int userId);
}
